package com.iqik.spi.test;

import com.iqik.spi.service.HelloService;

import java.util.ServiceLoader;

public class JdkSpiMain {

    public static void main(String[] args) {
        final ServiceLoader<HelloService> helloServices = ServiceLoader.load(HelloService.class);
        for (HelloService helloService: helloServices) {
            System.out.println(helloService.getClass().getName() + " : " + helloService.sayHello("Iqikia"));
        }
    }

}
